package com.wk1un2.dao;

import java.util.List;
import java.util.Map;

import org.springframework.web.bind.annotation.RequestParam;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wk1un2.entity.Students;

public interface StudentsDao extends BaseMapper<Students> {
	// 查询所有 咨询经理
	public List<Map<String, Object>> getAll(Map<String, Object> map);

	// 查询已分配
	List<Students> getDispense(Map<String, Object> map);

	// 查询未分配
	List<Students> getUndistributed(Map<String, Object> map);

	// 查询已分配总数
	public Integer countDispense(Map<String, Object> map);

	// 查询未分配总数
	public Integer countUndistributed(Map<String, Object> map);

	// 查询总数
	public Integer count(Map<String, Object> map);

	// 查询我（咨询师下）的学生
	public List<Students> getByUserid(Map<String, Object> map);

	// 查询网络学生
	public List<Students> getByLineUserid(Map<String, Object> map);
	// 查询网络学生数量
	public	Integer getByLineUseridCount(Map<String, Object> map);
	// 查询复选框选中的数据
	public List<Students> getChecked(List<Integer> one);

	// 批量修改咨询师
	public Integer getChooseModifyCounselor(@RequestParam("list") List<Integer> list,
			@RequestParam("userid") Integer userid);
}
